<?php

class Mithos_Util {
    public static function percentage($current, $max) {
        if ($current > $max) {
            return 100;
        }
        return ($current * 100) / $max;
    }
}

?>
